var swiper = new Swiper('.swiper-container',{
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
    });






// 返回顶部
var w = document.querySelector("#w");

            console.log(document.documentElement.scrollTop)
            window.onscroll = function() {
                if (document.documentElement.scrollTop > 500 || document.body.scrollTop > 500) {
                    w.style.display = 'block'
                } else {
                    w.style.display = 'none'
                }
            }

            w.addEventListener('click', function() {
                window.scrollTo(0,0);
            });



